<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			* {padding: 0;margin: 0;}
			img {display: block;width: 200px;height: 200px;float: left;}
		</style>
	</head>
	<body>
		
		<div id="content">
			<img data-src="../../carousel/123.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
			<img data-src="../../carousel/1.jpg"/>
		</div>
		<script type="text/javascript" src="lazyLoad.js" ></script>
		<script>
			
			window.onload = function(){
				var a = new MaxLazyLoad({
					wrapper:'content',
					seletor:'img',
					success:function(dom, src, parm){
						// console.log(dom, src, parm)
						dom.style.width = parm.width + 'px'
						dom.style.height = parm.height + 'px'
						console.log(a)
					},
					error:function(dom, src, parm){
						// console.log('err',dom, src, parm)
					}
				});
				console.log(a)
				setTimeout(function(){
					a.refresh()
					console.log(a)
				},2000)
			}
		</script>
	</body>
</html>
